import request from '@/utils/request'

// 查询计件工资汇总列表
export function listPieceworkMoneySummary(query) {
  return request({
    url: '/hr/pieceworkMoneySummary/list',
    method: 'get',
    params: query
  })
}
// 查询计件工资汇总列表
export function moneySummary() {
  return request({
    url: '/hr/pieceworkMoneySummary/moneySummary',
    method: 'get'
  })
}

// 查询计件工资汇总详细
export function getPieceworkMoneySummary(id) {
  return request({
    url: '/hr/pieceworkMoneySummary/' + id,
    method: 'get'
  })
}

// 新增计件工资汇总
export function addPieceworkMoneySummary(data) {
  return request({
    url: '/hr/pieceworkMoneySummary',
    method: 'post',
    data: data
  })
}

// 修改计件工资汇总
export function updatePieceworkMoneySummary(data) {
  return request({
    url: '/hr/pieceworkMoneySummary',
    method: 'put',
    data: data
  })
}

// 删除计件工资汇总
export function delPieceworkMoneySummary(id) {
  return request({
    url: '/hr/pieceworkMoneySummary/' + id,
    method: 'delete'
  })
}
